<?php $key = 'footer_'. (!empty($this->current_language) ? (string) $this->current_language : '')?>
<?php if (!$output = $this->cacheOutput()->start($key)):?>
    <footer class="footer">
        <?php echo $this->partial('index/commercial-zone1.phtml', 'default');?>
        <ul class="category">
        <?php $flag = $i = $name = $count_unit = 0;?>
        <?php foreach(Model_Category::all(array('sa'=>1, 'path' => array('$size' => 1)))->sort(array('pos' => 1)) as $cat):?>
			<?php 
			switch($i){
				case 0:		$flag = "property";
							$name = "房地产";
							$count_unit = "物业";
							break;
				case 1:		$flag = "car";
							$name = "车辆";
							$count_unit = "宝贝";
							break;
				case 2:		$flag = "pet";
							$name = "宠物";
							$count_unit = "宝贝";
							break;
				case 3:		$flag = "fashion"; 
							$name = "服装/箱包";
							$count_unit = "宝贝";
							break;
				case 4:		$flag = "beauty"; 
							$name = "美容/健康";
							$count_unit = "宝贝";
							break;
				case 5:		$flag = "digital"; 
							$name = "数码家电";
							$count_unit = "宝贝";
							break;
				case 6:		$flag = "home"; 
							$name = "家居生活";
							$count_unit = "宝贝";
							break;
				case 7:		$flag = "leisure";
							$name = "休闲娱乐";
							$count_unit = "宝贝";
							break;
				case 8:		$flag = "baby"; 
							$name = "母婴/幼儿";
							$count_unit = "宝贝";
							break;
				case 9:		$flag = "job";
							$name = "求职招聘";
							$count_unit = "工作";
							break;
				case 10:	$flag = "edu";
							$name = "教育培训";
							$count_unit = "宝贝";
							break;
				case 11:	$flag = "food"; 
							$name = "餐饮";
							$count_unit = "宝贝";
							break;
				case 12:	$flag = "adult"; 
							$name = "成人用品";
							$count_unit = "宝贝";
							break;
				case 13:	$flag = "business"; 
							$name = "商业目录";
							$count_unit = "宝贝";
							break;
			}
			$i++;?>
			<li class="<?php echo $flag?>"><a href="<?php echo $this->geturl('regular', 'search', null, null, array('small_category_list' => $cat->_id))?>"><?php echo $name?></a><span>(<?php echo (int)$cat->listing_count?>)</span></a>
                </li>
		<?php endforeach;?>
    </ul>
    <ul class="nav">
        <li class="local"><span>了解我们</span>
            <ul>
                <li><a href="<?php echo $this->geturl('about-us','default', null, 'default1')?>">关于猫找网</a></li>
                <li><a href="<?php echo $this->geturl('newsletter','default', null, 'default1')?>">与猫找网互动</a></li>
                <li><a href="<?php echo $this->geturl('contact-us','default', null, 'default1')?>">联系猫找网</a></li>
            </ul>
        </li>
        <li class="local"><span>商业服务</span>
            <ul>
                <li><a href="<?php echo $this->geturl('advertising','default', null, 'default1')?>">广告投放与品牌推广 </a></li>
                <li><a href="<?php echo $this->geturl('register','user')?>">商业帐户</a></li>
                <li><a href="<?php echo $this->geturl('bulk-listing','default', null, 'default1')?>">免费商家营销服务</a></li>
            </ul>
        </li>
        <li class="social"><span>社交网络</span>
            <ul>
				<li class="weibo"><a href="#">新浪微博</a></li>
				<li class="qzone"><a href="#">QQ空间</a></li>
            </ul>
        </li>
		<li class="partner"><span>合作伙伴</span>
			<ul>
			  <li class="ac"><a href="#">AsiaClassified (香港)</a></li>
			  <li class="acplus"><a href="#">AC PLUS</a></li>
			</ul>
		</li>
        <li class="term"><span>服务条款</span>
            <ul>
                <li><a href="<?php echo $this->geturl('privacy','default',null,'default1')?>">私隱權政策</a></li>
                <li><a href="<?php echo $this->geturl('term-of-use','default',null,'default1')?>">服務條款</a></li>
				<li><a href="#">著作权声明</a></li>
            </ul>
        </li>
    </ul>
    <p>Copyright © 2012 Maozhao猫找网版权所有. 沪ICP备12003858号</p>
  </footer>
    <?php $this->cacheOutput()->end(array('footer', $key))?>
    <!-- not cached: <?php echo $key?> -->
<?php else :?>
    <?php echo $output?>
    <!-- cached: <?php echo $key?> -->
<?php endif;?>
